Qt 5 Blueprints by Symeon Huang

Qt 5 Blueprints by Symeon Huang

Author:Symeon Huang [Huang, Symeon]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2015-03-30T04:00:00+00:00


There is nothing special about the name() function. By contrast, we use the EllipseDialog custom dialog to get some inputs from the user. Remember to connect all the signals and slots associated with the dialog before executing the exec() function; otherwise, the slots simply won't be connected. Also, note that the exec() function will block the event loop and return only after the dialog closes, which is pretty handy for our purposes because we can use the accepted values, such as m_x and m_y, to add an ellipse to QPainterPath.

As for the EllipseDialog custom dialog itself, it was created by adding a new Qt Designer Form Class via Qt Creator. Since it's used to provide an interface for the user to specify some parameters, we use Form Layout in this dialog. Add QLabel and QDoubleSpinBox, as suggested in the following screenshot:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.